From c0d718fd6967463f3dd8197bb766ac7e71d40a51 Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Sun, 4 Mar 2012 20:30:50 +0000 Subject: [PATCH] Improve reading of broken NMEA. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4156 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/nmea.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpsbabel/nmea.c b/gpsbabel/nmea.c index f0bc5119a..98bc4e731 100644 --- a/gpsbabel/nmea.c +++ b/gpsbabel/nmea.c @@ -397,6 +397,7 @@ gpgll_parse(char* ibuf) } hms = (int) hmsd; + last_read_time = hms; microseconds = MILLI_TO_MICRO(1000 * (hmsd - hms)); tm.tm_sec = hms % 100; @@ -405,8 +406,6 @@ gpgll_parse(char* ibuf) hms = hms / 100; tm.tm_hour = hms % 100; - last_read_time = hms; - waypt = waypt_new(); nmea_set_waypoint_time(waypt, &tm, microseconds); -- 2.30.2